package org.ms.springboot.aop.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;

@Data
@ToString
@Validated
@NoArgsConstructor
@AllArgsConstructor
public class Girl {

    private String name;
    @Min(value = 18, message = "年龄必须大于18岁")
    private Integer age;

}
